﻿{%extends "base.html"%}

{%block menu%}
		    <li><a href="/" class="navbut3"><span>Home</span></a></li>
		    <li><a href="/publicadas" class="navbut3"><span>Top Actions</span></a></li>
		    <li><a href="/novas" class="navbut4"><span>New Actions</span></a></li>
		    <li><a href="/enviar" class="navbut3"><span>Submit</span></a></li>
		    <li><a href="/perfil" class="navbut3"><span>Profile</span></a></li>			
		    <li><a href="/sobre" class="navbut3"><span>About</span></a></li>
{%endblock%}
{%block body%}
     <div>				
            <h2>{{resource.pagename}}</h2>                                
			<br><br>
			{% for proposta in propostas %}		 
				<div class="news-summary" id="xnews-0">
								<ul class="news-upcoming">
									<li class="vote-publish"><a  href="javascript:votar('{{proposta.titulo}}','{{proposta.cont}}','{{proposta.id}}')"><span id="xvotes-{{proposta.id}}" >{{proposta.cont}}</span></a></li>
									<li class="vote" id="xvote-0"><a href="javascript:votar('{{proposta.titulo}}','{{proposta.cont}}','{{proposta.id}}')">Vote</a></li>
								</ul>	
						<div class="top"> 
								<div class="toptitle" id="ls_thetitle-0">							 
									<a href="{{proposta.url}}" target="_blank" >{{proposta.titulo}}</a>							        
								</div>
								<div class="news-submitted">						
									<!--
									<span id="ls_posted_by-0">Inserido por </span>
									<a href="javascript://" onclick="show_hide_user_links(document.getElementById('userlinks-0'));">
									<span id="ls_link_submitter-0">{{proposta.autor.nome}}</span></a>
									<span id="userlinks-0" style="display:none;"><a href = "/perfil={{proposta.autor}}">Ver perfil</a></span><br/>
									-->								
									<span id="ls_category-0"><b><a href="?category={{proposta.categoria}}" style='text-decoration:none;'>Category</a></b>: <a href="?category={{proposta.categoria}}">{{proposta.categoria}}</a></span>
									<span id="ls_tags-0"><b><a href="#" title="Tags" style='text-decoration: none;'>Tags</a></b>: 
											{% for tag in proposta.tags %}
											<a href="/search?q={{tag}}" style='text-decoration: none;'>{{tag}}</a>
											{%endfor%}
									</span> 
									<span id="ls_adminlinks-0" style="display:none"></span>
								</div>
							<span class="news-body-text">
							<span id="ls_contents-0">{{proposta.descricao}}
								<a href="/story?title={{proposta.titulo}}"> Read more</a> &raquo; <br /> 
							</span>
							</span>	  			
							<span class="news-details">
							<span id="ls_comments_url-0">	    							
							<span id="linksummaryDiscuss"><a href="/story?title={{proposta.titulo}}" class="comments">Comments</a> &nbsp;</span></span></span>
						</div>	
				</div>						 
			{% endfor %}
	</div>
	
{%endblock%}